package pl.edu.pw.ee.buildcity.ui.web.jsf.utils;

import javax.faces.context.FacesContext;

import org.springframework.web.jsf.FacesContextUtils;

/**
 * @author mgrzechocinski
 * @since 2009-11-15
 */
public class JSFUtils {

	public static Object getSpringBean(String beanName) {
		return FacesContextUtils.getWebApplicationContext(FacesContext.getCurrentInstance()).getBean(beanName);
	}

}
